package com.example.springbootdemo.strategy;

/**
 * @author ：cici
 * @date ：Created in 2019/3/23 11:43
 * 简单的策略模式
 */
public class Client {

    public static void main(String[] args) {

        Calculate calculate = new Add();
        Context context = new Context(calculate);
        System.out.println(context.operate(10,20));
    }

}
